package com.tjbaobao.videoplayol.message.response;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by TJbaobao on 2017/10/21.
 */

public class BaseResponse<Info> {

    private List<Info> data = new ArrayList<>() ;

    private String resultCode;
    private String message ="";

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<Info> getData() {
        return data;
    }

    public Info getFirstData() {
        if(data!=null&&data.size()>0)
        {
            return data.get(0);
        }
        return null;
    }

    public void addData(Info info) {
        data.add(info);
    }
}
